Package com.cisco.pt.ipc.sim.impl
Class ClassMapImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ClassMapImpl
Information provided by the PKI file:
\class ClassMap
\brief ClassMap handles the class maps for QoS.
\example network().getDevice("Router0").getClassMapManager().getClassMapAt(0)
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionClassMapImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionInformation provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:intInformation provided by the PKI file:booleanInformation provided by the PKI file:voidsetDescription(String description) Information provided by the PKI file:voidsetMapType(MapType mapType) Information provided by the PKI file:voidsetMatchType(ClassMapMatchType matchType) Information provided by the PKI file:Information provided by the PKI file:toString()Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
ClassMapImpl
public ClassMapImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
getMapName
Information provided by the PKI file:
\brief Returns the class map name. \return string, the class map name.- Specified by:
getMapNamein interfaceClassMap- Returns:
- String Returns a String
-
setDescription
Information provided by the PKI file:
\brief Sets the class map description. \param description, the class map description.- Specified by:
setDescriptionin interfaceClassMap- Parameters:
description- Takes in a parameter of description
-
getDescription
Information provided by the PKI file:
\brief Returns the class map description. \return string, the class map description.- Specified by:
getDescriptionin interfaceClassMap- Returns:
- String Returns a String
-
getMatchTypeString
Information provided by the PKI file:
\brief Returns the class map match types. \return string, the class map match types.- Specified by:
getMatchTypeStringin interfaceClassMap- Returns:
- String Returns a String
-
getMatchType
Information provided by the PKI file:
\brief Returns the class map match type. \return QoS::EClassMapMatchType, the class map match type. Match types: eMatchAny = 0, eMatchAll = 1- Specified by:
getMatchTypein interfaceClassMap- Returns:
- ClassMapMatchType Returns a ClassMapMatchType
-
setMatchType
Information provided by the PKI file:
\brief Sets the class map match type. \param QoS::EClassMapMatchType, the class map match type. Match types: eMatchAny = 0, eMatchAll = 1- Specified by:
setMatchTypein interfaceClassMap- Parameters:
matchType- Takes in a parameter of matchType
-
toReverseString
Information provided by the PKI file:
\brief Returns the class map string. \param string, the class map string.- Specified by:
toReverseStringin interfaceClassMap- Returns:
- String Returns a String
-
toString
Information provided by the PKI file:
\brief Returns the class map reverse string. \param string, the class map reverse string. -
getMapType
Information provided by the PKI file:
\brief Returns the class map type. \return QoS::eMapType, the map type. Map types: type_default = 0, type_control = 1, type_inspect = 2, type_logging = 3- Specified by:
getMapTypein interfaceClassMap- Returns:
- MapType Returns a MapType
-
setMapType
Information provided by the PKI file:
\brief Sets the class map type. \param mapType, the map type. Map types: type_default = 0, type_control = 1, type_inspect = 2, type_logging = 3- Specified by:
setMapTypein interfaceClassMap- Parameters:
mapType- Takes in a parameter of mapType
-
getStatementCnt
public int getStatementCnt()Information provided by the PKI file:
\brief Returns the number of statements in this class map. \return int, the number of statements in this class map.- Specified by:
getStatementCntin interfaceClassMap- Returns:
- int Returns a int
-
isClassDefault
public boolean isClassDefault()Information provided by the PKI file:
\brief Returns true if this class map is class-default, otherwise false. \return bool, true if this class map is class-default, otherwise false.- Specified by:
isClassDefaultin interfaceClassMap- Returns:
- boolean Returns a boolean
-